<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{ 
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					 
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
	
  </script>
  <div class="h"><a href="{:U('index')}" class="btn btn-info"><i class="glyphicon glyphicon-circle-arrow-left"></i> 返回分成设置列表</a>
 
 </div>
    <form class="checkoutform form-horizontal" action="" method="post">
   <input type="hidden" name="qrcode" value="1">
   <div class="container">
   
   
   <div class="form-group">
      <label class="col-sm-2 control-label">背景图片</label>
      <div class="col-sm-10">
         <input name="qrbackground" type="hidden" value="{$qrbackground}" /><img onclick="showImgBox(this);" src="<notempty name="qrbackground">{:getThumbPath($qrbackground)}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="img_url" height="40" />
      </div> 
   </div>
   <div class="form-group">
      <label class="col-sm-2 control-label">二维码位置</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="qrposition" value="{$qrposition}" placeholder="二维码位置（x,y）">
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">二维码大小</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="qrsize" value="{$qrsize}" placeholder="二维码大小（w,h）">
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">头像位置</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="headposition" value="{$headposition}" placeholder="头像位置（x,y）">
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">头像大小</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="headsize" value="{$headsize}" placeholder="头像大小（w,h）">
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">昵称大小</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="nicknamesize" value="{$nicknamesize}" placeholder="昵称大小（整数）">
      </div>
   </div>
   
   <div class="form-group">
      <label class="col-sm-2 control-label">昵称位置</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="nicknameposition" value="{$nicknameposition}" placeholder="昵称位置（x,y）">
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-2 control-label">昵称颜色</label>
      <div class="col-sm-10">
         <input class="form-control" type="text" name="nicknamecolor" value="{$nicknamecolor}" placeholder="昵称颜色（如：#ffffff）">
      </div>
   </div>
   
   
   <div class="form-group">
      <label class="col-sm-2 control-label">所有会员都能生成</label>
      <div class="col-sm-10">
         <label class="checkbox-inline"> <input name="createQr" type="radio" id="is_nav_8" value="1" <eq name="createQr" value="1">checked="checked"</eq> />
          是</label>
          <label class="checkbox-inline">  <input name="createQr" type="radio" id="is_nav_9" value="0" <eq name="createQr" value="0">checked="checked"</eq> />
          否</label>
      </div>
      </div>
   
   
   <div class="form-group">
      <label class="col-sm-2 control-label">生成成功发送信息</label>
      <div class="col-sm-10">
         <textarea class="form-control" name="sendMsg" cols="60" rows="6">{$sendMsg}</textarea>
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-2 control-label">关注链接</label>
      <div class="col-sm-10">
         
         <textarea class="form-control" id="subscribeLink" name="subscribeLink">{$subscribeLink}</textarea>
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-2 control-label">关注图片</label>
      <div class="col-sm-10">
         <input name="subscribeImage" type="hidden" value="{$subscribeImage}" /><img onclick="showImgBox(this);" src="<notempty name="subscribeImage">{:getThumbPath($subscribeImage)}<else/>__PUBLIC__/Admin/images/defaultimg.png</notempty>" id="img_url" height="40" />
      </div> 
   </div>
 
    
     <!-- <iframe src="__PUBLIC__/Js/Qrsetting/editor.html?id=qrsetting" width="100%" height="540"></iframe>-->
    
   
      <div class="pages"><button type="submit" class="btn btn-success">保存</button></div></div>
    </form>
    

  </div>
  <div class="clear"></div>
</div>
<include file="Public:footer" />